package ams.model.dto;

import java.util.ArrayList;
import java.util.List;

public class ExecResult {

	private boolean success;

	private List<String> message = new ArrayList<>();

	public ExecResult() {
	}
	

	public ExecResult(boolean success) {
		super();
		this.success = success;
	}


	public ExecResult(boolean success, List<String> message) {
		super();
		this.success = success;
		this.message = message;
	}

	public boolean isSuccess() {
		return success;
	}

	public void setSuccess(boolean success) {
		this.success = success;
	}

	public List<String> getMessage() {
		return message;
	}

	public void setMessage(List<String> message) {
		this.message = message;
	}

	@Override
	public String toString() {
		return "ExecResult [success=" + success + ", message=" + message + "]";
	}

}
